
export const accountType1 = [ // 第三方账户
  {
    label: '账号',
    width: '120px',
    type: 'inputText',
    isRequired: true,
    keyword: 'channelAccount'
  },
  {
    label: '下单平台',
    type: 'select',
    keyword: 'platformId',
    renderKeyword: 'platform',
    isRequired: true,
    options: []
  },
  {
    label: '付款类型',
    type: 'select',
    renderType: 'filter',
    isRequired: true,
    width: '120px',
    keyword: 'collectMoneyType',
    default: 0,
    options: [
      { id: 0, name: '全款' },
      { id: 1, name: '预付款' },
      { id: 2, name: '部分款' },
      { id: 3, name: '尾款' }
    ]
  },
  {
    label: '本次结算金额(元)',
    type: 'inputNumber',
    isRequired: true,
    width: '140px',
    placeholder: '输入总成本',
    keyword: 'settlementAmount',
    showType: 'price'
  },
  // {
  //   label: '付款金额',
  //   type: 'inputNumber',
  //   isRequired: true,
  //   keyword: 'withdrawAmount',
  //   showType: 'price'
  // },
  {
    label: '对方到手金额(元)',
    tip: '账户类型为第三方时，对方到手金额会除以费率',
    type: 'inputNumber',
    width: '150px',
    isRequired: true,
    keyword: 'withdrawAmount',
    placeholder: '实付金额/费率',
    disabled: false,
    showType: 'price'
  },
  {
    label: '费率',
    tip: '无费率的正常值为1.0',
    type: 'inputRate',
    isRequired: true,
    noFirstDisable: true,
    keyword: 'priceRate'
  },
  {
    label: '实付金额(元)',
    width: '130px',
    type: 'inputNumber',
    isRequired: true,
    placeholder: '本次付款金额', // '=对方到手金额',
    disabled: false,
    keyword: 'actualAmount',
    showType: 'price'
  },
  {
    label: '收款户名',
    type: 'autocomplete',
    isRequired: true,
    width: '160px',
    maxlength: 50,
    keyword: 'payName'
  },
  {
    label: '收款账号',
    type: 'inputText',
    width: '160px',
    isRequired: true,
    keyword: 'payNum'
  },
  {
    label: '身份证号',
    type: 'inputText',
    width: '180px',
    isRequired: true,
    keyword: 'identityNumber'
  },
  {
    label: '联系电话',
    type: 'inputText',
    width: '130px',
    isRequired: true,
    keyword: 'tel'
  },
  {
    label: '收款人关系',
    type: 'select',
    width: '120px',
    renderType: 'filter',
    keyword: 'payRelation',
    options: [
      { id: 0, name: '账号所有者' },
      { id: 1, name: '个人代理' },
      { id: 2, name: '非投放无需填写' }
    ]
  }
  // {
  //   label: '执行付款情况',
  //   type: 'select',
  //   width: '120px',
  //   renderType: 'filter',
  //   keyword: 'executePay',
  //   options: [
  //     { id: 0, name: '执行且客户已付全款' },
  //     { id: 1, name: '执行且客户已付部分款' },
  //     { id: 2, name: '执行客户未付款' },
  //     { id: 3, name: '未执行客服已付全款' },
  //     { id: 4, name: '未执行客户已付部分款' },
  //     { id: 5, name: '未执行客户未付款' }
  //   ]
  // }
];
export const accountType2 = [ // 对公银行账户
  {
    label: '账号',
    width: '120px',
    type: 'inputText',
    isRequired: true,
    keyword: 'channelAccount'
  },
  {
    label: '下单平台',
    type: 'select',
    keyword: 'platformId',
    renderKeyword: 'platform',
    isRequired: true,
    options: []
  },
  {
    label: '付款类型',
    type: 'select',
    renderType: 'filter',
    isRequired: true,
    width: '120px',
    keyword: 'collectMoneyType',
    default: 0,
    options: [
      { id: 0, name: '全款' },
      { id: 1, name: '预付款' },
      { id: 2, name: '部分款' },
      { id: 3, name: '尾款' }
    ]
  },
  {
    label: '本次结算金额(元)',
    type: 'inputNumber',
    isRequired: true,
    keyword: 'settlementAmount',
    showType: 'price'
  },
  {
    label: '实付金额(元)',
    width: '140px',
    type: 'inputNumber',
    placeholder: '本次付款金额',
    isRequired: true,
    disabled: false,
    keyword: 'actualAmount',
    showType: 'price'
  }
  // {
  //   label: '联系电话',
  //   type: 'inputText',
  //   width: '130px',
  //   isRequired: true,
  //   keyword: 'tel'
  // }
];
// 收款账户 对公银行账户
export const collectionAccount1 = [
  {
    label: '收款户名',
    type: 'autocomplete',
    isRequired: true,
    keyword: 'payName',
    placeholder: '请输入姓名'
  },
  {
    label: '收款账号',
    type: 'inputText',
    isRequired: true,
    keyword: 'payNum',
    placeholder: '请输入银行卡号'
  },
  {
    label: '银行',
    type: 'select',
    isRequired: true,
    keyword: 'bank',
    keyName: 'value',
    option: [],
    placeholder: '请选择',
    createNew: true
  },
  {
    label: '省市',
    type: 'selectCity',
    isRequired: true,
    selectType: 'city',
    width: '160px',
    keyword: 'province',
    placeholder: '请选择省市'
  },
  {
    label: '支行',
    type: 'inputText',
    width: '160px',
    isRequired: true,
    keyword: 'subBank',
    placeholder: '请输入支行'
  }
];
// 收款账户 对公其他账户
export const collectionAccount2 = [
  {
    label: '支付平台',
    type: 'select',
    isRequired: true,
    keyword: 'payPlatform',
    placeholder: '请选择',
    keyName: 'value',
    option: []
  },
  {
    label: '收款户名',
    type: 'autocomplete',
    isRequired: true,
    keyword: 'payName',
    placeholder: '请输入姓名'
  },
  {
    label: '收款账号',
    type: 'inputText',
    isRequired: true,
    keyword: 'payNum',
    placeholder: '请输入银行卡号'
  }
];
